import { useData } from "@table/hooks/useData";
export const useSearch = () => {
  const { searchOptions, options } = useData();
  const save = () => {
    if (options.value?.searchSetting.storage) {
      localStorage.setItem(options.value.searchSetting.storageKey as string, JSON.stringify(searchOptions.value));
    }
  };
  return { save };
};
